import Vue from 'vue'
import Router from 'vue-router'


Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      component: resolve => require(['../views/Login.vue'], resolve)
    },
    {
      path: '/Home',
      component: resolve => require(['../components/Home.vue'], resolve),
      children: [{
        path: '/Info',
        component: resolve => require(['../views/InfoPage.vue'], resolve)
      },
      {
        path: '/Consumer',
        component: resolve => require(['../views/ConsumerPage.vue'], resolve)
      },
      {
        path: '/Singer',
        component: resolve => require(['../views/SingerPage.vue'], resolve)
      },
      {
        path: '/SongList',
        component: resolve => require(['../views/SongListPage.vue'], resolve)
      },
      {
        path: '/Song',
        component: resolve => require(['../views/SongPage.vue'], resolve)
      },
      {
        path: '/ListSong',
        component: resolve => require(['../views/ListSongPage.vue'], resolve)
      },
    ]
    },

  ]
})
